package cn.codeforfun.exchage;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/2/18 0018.
 */
@Repository
public interface ExchangeDao extends JpaRepository<Exchange, Long>, ExchangeCustom {
    Exchange findByFollowerIdAndVoteId(Long followerId, Long voteId);

    List<Exchange> findByCode(Integer code);
}
